import request from '@/utils/request.js'

import {useTokenStore} from '@/stores/token.js'



 //题目知识点
export const questionAddService = (questionData)=>{
    return request.post('/admin/teaching/question/add',questionData);

}


//题目列表查询
export const questionListService = (params)=>{
    return  request.get('/admin/teaching/question/list',{params:params})
 }


  //题目分类删除
export const questionDeleteService = (id)=>{
    return request.get('/admin/teaching/question/del?id='+id)
}


//题目分类修改
export const questionUpdateService = (questionData)=>{
    return  request.post('/admin/teaching/question/edit',questionData)
 }

//题目发布
 export const questionPublishService = (questionData)=>{
    return  request.post('/admin/teaching/question/publish',questionData)
 }



export const questionDataListService = (params)=>{
    return  request.get('/admin/teaching/questionData/list',{params:params})
}

export const knowledgeDataListService = (params)=>{
    return  request.get('/admin/teaching/knowledgeData/list',{params:params})
}
